﻿<%@ Page Title="" Language="C#" MasterPageFile="~/giaovien/Manager3.master" AutoEventWireup="true"
    CodeFile="TrangDanhSachHS.aspx.cs" Inherits="giaovien_TrangDanhSachHS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Danh sách học sinh theo lớp
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Năm học: </span>
                    <asp:DropDownList ID="drNamHoc" runat="server" Width="120px" CssClass="heighcontrol">
                    </asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Lớp học: </span>
                    <asp:DropDownList ID="drLopHoc" runat="server" Width="120px" 
                        CssClass="heighcontrol" AutoPostBack="True" 
                        onselectedindexchanged="drLopHoc_SelectedIndexChanged">
                    </asp:DropDownList>
                </div>
                <div style="text-align:right;margin-bottom:10px;">
                   <%-- <a class="table" href="TrangKetQuaHocTapTheoKy.aspx">Xem điểm theo kỳ <img class="size" src="../Icon/table(1).ico" alt="Xem điểm" /></a>&nbsp;&nbsp;&nbsp;
                     <a class="table" href="TrangDanhGiaHanhKiem.aspx">Đánh giá hạnh kiểm <img class="size" src="../Icon/table_accept.ico" alt="Xem điểm" /></a>&nbsp;&nbsp;&nbsp;
                     <a class="table" href="TrangBangTongHopKetQua.aspx">Xem kết quả tổng hợp <img class="size" src="../Icon/table_star.ico" alt="Xem điểm" /></a>--%>
                     <span><asp:LinkButton runat="server" ID="lbkKetQuaTheoKy" CssClass="table" 
                        Text="Bảng điểm theo kỳ" onclick="lbkKetQuaTheoKy_Click"></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbKQTheoKy" CssClass="size" 
                        ImageUrl="~/Icon/table(1).ico" onclick="imbKQTheoKy_Click" />
                     </span>&nbsp;&nbsp;&nbsp;
                      <span><asp:LinkButton runat="server" ID="lbkDanhGiaHK" CssClass="table" 
                        Text="Đánh giá hạnh kiểm" onclick="lbkDanhGiaHK_Click"></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbDGHK" CssClass="size" 
                        ImageUrl="~/Icon/table_accept.ico" onclick="imbDGHK_Click" />
                     </span>&nbsp;&nbsp;&nbsp;
                      <span><asp:LinkButton runat="server" ID="lbkTongHop" CssClass="table" 
                        Text="Bảng tổng hợp kết quả" onclick="lbkTongHop_Click"></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="ImageButton2" CssClass="size" 
                        ImageUrl="~/Icon/table_star.ico" onclick="ImageButton2_Click" />
                     </span>
                </div>
                <div>
                    <asp:GridView ID="grvDSHS" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" Height="28px" ShowFooter="True" PageSize="50">
                        <HeaderStyle BackColor="#9999FF" Height="30px" />
                        <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <Columns>
                            <%--<asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckCheck" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                <ItemTemplate>
                                    <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblTenHS" Text='<%# Bind("TenHS") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Xem chi tiết">
                                <ItemTemplate>
                                    <asp:ImageButton runat="server" ID="imgXemDiem" Height="30px" ImageUrl="~/Icon/personal.ico" 
                                    PostBackUrl='<%#"~/giaovien/TrangPhieuDiemChiTietHS.aspx?MaHS="+Eval("MaHS")+"&MaNam="+this.drNamHoc.SelectedValue.ToString()+"&TenLop="+ this.drLopHoc.SelectedItem.Text%>'/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Xem phiếu điểm">
                                <ItemTemplate>
                                    <asp:ImageButton runat="server" ID="imgXemDiem" Height="30px" ImageUrl="~/Icon/personal.ico" 
                                    PostBackUrl='<%#"~/giaovien/TrangPhieuDiemChiTietHS.aspx?MaHS="+Eval("MaHS")+"&MaNam="+this.drNamHoc.SelectedValue.ToString()+"&TenLop="+ this.drLopHoc.SelectedItem.Text%>'/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Lỗi vi phạm">
                                <ItemTemplate>
                                    <asp:ImageButton runat="server" ID="imgLoiVP" Height="30px" ImageUrl="~/Icon/violation.ico" PostBackUrl='<%#"~/giaovien/TrangDanhSachLoiHS.aspx?MaHS="+Eval("MaHS")
                                    +"&MaNam="+this.drNamHoc.SelectedValue.ToString()+"&TenLop="+ this.drLopHoc.SelectedItem.Text
                                    +"&TenNam="+ this.drNamHoc.SelectedItem.Text%>'/>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                   </asp:GridView>
                </div>
                <div style="text-align:right;margin-top:10px;">
                   <%-- <a class="table" href="TrangKetQuaHocTapTheoKy.aspx">Xem điểm theo kỳ <img class="size" src="../Icon/table(1).ico" alt="Xem điểm" /></a>&nbsp;&nbsp;&nbsp;
                     <a class="table" href="TrangDanhGiaHanhKiem.aspx">Đánh giá hạnh kiểm <img class="size" src="../Icon/table_accept.ico" alt="Xem điểm" /></a>&nbsp;&nbsp;&nbsp;
                     <a class="table" href="TrangBangTongHopKetQua.aspx">Xem kết quả tổng hợp <img class="size" src="../Icon/table_star.ico" alt="Xem điểm" /></a>--%>
                     <span>
                    <asp:LinkButton runat="server" ID="lbkTheoKy2" CssClass="table" 
                        Text="Bảng điểm theo kỳ" onclick="lbkTheoKy2_Click" ></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbTheoKy2" CssClass="size" 
                        ImageUrl="~/Icon/table(1).ico" onclick="imbTheoKy2_Click"  />
                     </span>&nbsp;&nbsp;&nbsp;
                      <span>
                    <asp:LinkButton runat="server" ID="lbkHanhKiem2" CssClass="table" 
                        Text="Đánh giá hạnh kiểm" onclick="lbkHanhKiem2_Click" ></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbHanhKiem2" CssClass="size" 
                        ImageUrl="~/Icon/table_accept.ico" onclick="imbHanhKiem2_Click" />
                     </span>&nbsp;&nbsp;&nbsp;
                      <span>
                    <asp:LinkButton runat="server" ID="lbkTongHop2" CssClass="table" 
                        Text="Bảng tổng hợp kết quả" onclick="lbkTongHop2_Click" ></asp:LinkButton>
                     <asp:ImageButton runat="server" ID="imbTongHop2" CssClass="size" 
                        ImageUrl="~/Icon/table_star.ico" onclick="imbTongHop2_Click"  />
                     </span>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
